package com.gongzhongzhisheng.robot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 机器人回复
 * @author yusong
 * @date 20241114
 */
@Mapper
public interface RobotMapper {
	
	@Select("select * from keyword_mapper where keyword like '%${keyword}%' and state=1")
	public List<KeywordMapper> selectKeywordList(@Param("keyword") String keyword);
	
	@Select("select * from keyword_mapper where state=2")
	public KeywordMapper selectKeyword();
	
}
